using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace VCity
{
    public class LoginCam : MonoBehaviour
    {

        public float rotateDegree = 2;

        Vector3 angle;

        private void Start()
        {
            angle = transform.localRotation.eulerAngles;
        }

        // Update is called once per frame
        void Update()
        {
            //transform.localRotation = transform.localRotation * Quaternion.AngleAxis(rotateDegree * Time.deltaTime, Vector3.up);
            angle.y += rotateDegree * Time.deltaTime;
            angle.y %= 360f;
            transform.localRotation = Quaternion.Euler(angle.x, angle.y, 0);
        }
    }
}